<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <title>{$news.title|default='news'}</title>
</head>
<style>
    .container {
        width: 90%;
        text-align: center;
        margin: 0 auto;
        padding: 0;
        overflow: auto;
    }
</style>
<body>
    <div class="container">
        {notempty name="news"}
        <h3>{$news.title}</h3>
        <h4>{:date('Y-m-d', strtotime($news.create_time))}</h4>
        <p>{:htmlspecialchars_decode($news.content)}</p>
        {/notempty}
        {if empty($news) == true}
        <p>此新闻id不存在</p>
        {/if}
        {if !empty($error) == true}
        <p>{$error}</p>
        {/if}

    </div>
</body>
</html>